#include<stdio.h>
int main()
{
	int a = 0;
	for (a = 1; a < 10; a++)
	{
		int b = 10 * a + a;
		int c = 100 * a + 10 * a + a;
		int d = 1000 * a + 100 * a + 10 * a + a;
		int e = 10000 * a + 1000 * a + 100 * a + 10 * a + a;
		int num = 0;
		num = a + b + c + d + e;
		printf("%d ", num);

	}
	return 0;
}